Repository navigation
cluster, status: a paired start says what it does, Apple's check reads as progress, and both Macs show the pause, from now - #1908
Merged
Conversation
…d the pair's pause on every Mac, from now (red) Journey 2a on pair-2 (DevNet `.144`, `validation-evidence/journey-2a.md`, steps 3 and 5) passed #1892, and found five frictions in the pair's words: - J2-b: a script's `start` on a pair that served said "starting the pair". - J2-d: in a terminal, a stopped pair's `start` said "starting the pair", then waited at the model list: nothing starts before Enter. - J2-c: every healthy 45-second start said "This Mac isn't verified by Apple yet; … Don't restart either Mac until then." for both Macs. - J2-h: while the pair was paused for its owner, the Mac that follows said only "✓ Serving … through Darkbloom". - J2-i: the pause said "since 21:41", the Mac's own time without a zone, read over SSH at 05:41 UTC. DarkbloomCLITests (compile against today's sources, fail on what they say): - PairStartFirstLineTests, and the start tests that pinned the old line: - a script's start on a pair that serves says "the pair already serves", asks nothing of either Mac, on either Mac; - one in a terminal says what its screen does: on the leading Mac of a stopped pair "Press Enter to start it with Qwen 3.8 27B (last used), or choose another model.", with no model "Choose its model to start it."; elsewhere "opening the pair's screen"; - a pair that runs here and still loads starts as before (a guard). - coordinatorWaitIsLoading: "… is not serving yet: checking both Macs with Apple." reads as loading on both Macs, never ✗, and isn't a final reason. - ClusterPairBothMeFirstCLITests: the Mac that follows shows the pause the leading Mac's status carries, under the pair's line, and points there only for its address and key; the leading Mac says it once. - LocalFirstStatusTests: the pause in relative words ("paused for 10 minutes", "back in about 1 minute if you stay idle", "1 hour 5 minutes", "back in under a minute"), and no clock time in any line. Calls drop `timeZone:`, which the words no longer need. ProviderCoreTests (red by compile: `MeFirstWords`, `ClusterOnboardingAppleCheck` and `OnboardingLive.pauseLines` don't exist): - MeFirstWordsTests: the words for one Mac and for a pair, spans in minutes and hours, the way back, no speed and no clock time. - ClusterPairStatusWordsTests: Apple's check is progress ("checking both Macs with Apple") until a Mac's part has run 2 minutes without it, or its key-generation safeguard holds it back; the Mac that joined says the same; the status of the Mac whose part runs the pair's API carries me first, and nothing elsewhere or for the other ways to serve. On 8e7d44a (#1905's head): PairStartFirstLineTests fails 2 of 2 (5 issues); the six start and status tests above 6 of 6 (12 issues); LocalFirstStatusTests 2 of 9 (7 issues); ClusterPairBothMeFirstCLITests 3 of 13 (6 issues). Each for the reason above: "starting the pair" and ["ensureService", "serve"]; `.notServing` and "✗ Not serving: checking …"; "paused since 06:02 … back at about 06:13" (this Mac's zone); the member's "whether Darkbloom is paused" and the leader's second Pair line. The ProviderCore files fail to type-check on the three missing names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is progress, both Macs show the pause, from now
Journey 2a on pair-2 (`validation-evidence/journey-2a.md`, steps 3 and 5):
- J2-b: a script's `start` on a pair that already serves keeps it and says so.
`ClusterPairCommands.servingLook` takes one look at the status `cluster
status` reads, only while this Mac's own view says the pair runs here and
the other Mac answers. When it serves: "…: the pair already serves.", the
result block, exit 0, and nothing is asked of either Mac. Otherwise
"starting the pair" as before. The look waits as the wait's looks do (never
cut short), and a start whose other Mac is away doesn't look first.
- J2-d: in a terminal, the line before the pair's screen says what that screen
does (`ClusterPairSummary.screenLine`). On the leading Mac of a stopped pair:
"…, which is stopped. Press Enter to start it with Qwen 3.8 27B (last used),
or choose another model." ("Choose its model to start it." before one was
chosen). Elsewhere: "…: opening the pair's screen."
- J2-c: what the warning reflected. A part that just started has no App Attest
authorization in the coordinator's trust status yet (`Child.appAttest ==
false`); it lands about a minute after the part registers. `pairLook`
turned that into "isn't verified by Apple yet … Don't restart either Mac"
at once, and `cluster status` and a script's start read it as ✗.
`ClusterOnboardingAppleCheck` now gives progress words, "checking both Macs
with Apple" (or the one Mac), in the status line's reason place, read as
loading on both Macs and on the Mac that joined
(`offeredWaitingWords`). The warning comes only once a Mac's part has run
2 minutes without one (`slowSeconds`), its key-generation safeguard holds it
back, or its part's age is unknown (an older build), as before.
- J2-h: the leading Mac's status carries me first under the pair's serving
line (`OnboardingLive.pauseLines`). It reads its part's own state file when
that part runs rank 0, and only for Both, me first. Every `status` on the
other Mac already asks for this status over the cable, so the Mac that
follows says the pause too, with nothing new on the link or the heartbeat
and nothing per request; `darkbloom cluster` shows it under its ✓ block.
`localAPILines` says it once: the rank-0 Mac adds its own line only when
the status didn't carry one, and the other Mac's pointer drops "whether
Darkbloom is paused" when it did.
- J2-i: `MeFirstWords` (ProviderCore) says me first from now, for one Mac
("Serving: …") and the pair ("Pair: …"): "paused for 10 minutes",
"1 hour 5 minutes", "back in about 2 minutes if you stay idle", "back in
under a minute", "back any moment now", and never a clock time.
`Status.meFirstLines` and the pair's lines use it, and `LocalFirstWords`'
minutes come from it. `Status.ago`, `Status.clock`, and the `timeZone:`
parameters of the status lines are gone.
- Tests: `servingPair()` now has its other Mac answering, as a serving pair
does, so the J2-b look runs there. `scriptWordsMatchWhatHappens` takes that
gate into account: a loading pair whose other Mac answers is looked at, and
then started; one whose other Mac is away is started without a look.
- Docs: two-mac-cluster, local-first, cluster-always-on (the reboot check and
a troubleshooting row), cli-reference (start, the status table, cluster
status, Both, me first), agent-setup, troubleshooting, architecture/owner-
pause (what each Mac says, and its cost). Changelog fragment.
Green (CPU-only, Xcode 27.2): the red commit's tests; all of
DarkbloomCLITests, 1,221 tests in 177 suites (Metal-loading suites skipped);
ProviderCoreTests MeFirstWordsTests, ClusterPairStatusWordsTests,
ClusterOnboardingPeerLabelTests, ClusterPublicServingCheckTests,
MeFirstPolicyTests; and the plain-swiftc ClusterOnboardingChecks (1,941),
ClusterConsoleChecks and ClusterControlChecks (682).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… decode and submit) into fix/pair-words-and-pause #1905 moved by its red 668f5b9 and fix 073ee42: the app's paired Start, as the app posts it, reaches `start` (`DesktopBackend`, `DesktopTypes`), with tests in ClusterPairCommandsTests and backend.test.ts. No textual conflict, one in meaning: #1905's new `appStartAsPosted` expects `DesktopAppOnAPairedMacTests.starting` ("…: starting the pair."), which this branch had dropped when that suite's serving case moved to "the pair already serves". It is back: that test starts a stopped pair, which still says "starting the pair". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pple warning only when real, the member never guesses The required refactor pass (AGENTS.md) for #1908. Behaviour is unchanged, and the tests only gain checks: no expectation was dropped or loosened. ProviderCore: - `ClusterOnboardingAppleCheck.Mac.warns` names the rule for a real Apple warning: a Mac that reports no App Attest authorization, and is held back by its key-generation safeguard, or whose part has run 2 minutes without one, or whose part's age is unknown. A Mac with the authorization, or with no trust status yet, never warns. `look` uses it, and its check words are spelled once (`isChecking` reads the same prefix and suffix). - `ClusterOnboardingPairWait.words` decides what the pair waits for (the committed start, else Apple's check of a new part, else the coordinator's pairing); `pairLook` calls it. `isProgress` reads those words as progress. Before, the choice was inline in `pairLook`, which no test runs, and darkbloom spelled the coordinator's two phrases again (`pairingProgress`, removed: `state(ofStatus:)` calls `isProgress`). - Comments state the invariants where they hold: the pause comes only from the part that runs rank 0 and reaches the other Mac as text in the leading Mac's status (one state-file read per status, nothing per request, no new message on the link or the heartbeat); `MeFirstWords` makes its words with the clock of the Mac whose part wrote the snapshot, so two clocks never mix; only the leading Mac's look decides between Apple's progress words and the warning, and every reader reads its words. - `offeredWaitingWords` capitalizes with `ClusterOnboardingMacName.sentence`. CLI: - `localAPILines`, `servingLook` and `screenLine` say why: a Mac whose part doesn't run rank 0 never works the pause out, and only the pair's own look says a start's pair already serves. Tests: - ClusterPairStatusWordsTests: a Mac with App Attest, or with no trust status yet, never warns, whatever its age or safeguard; the warning starts at exactly 2 minutes; of two real warnings, this Mac's; the wait's words and `isProgress`. Each catches a mutant the PR's tests let through (a verified Mac warns; a Mac with no trust status warns; `>` for `>=`; the last Mac named; the wait ignores Apple's check; Apple's check outranks the committed start). - ClusterPairCommandsTests: one `startingThePair` beside `alreadyServes` and `openingScreen` instead of seven spellings; `stoppedPair(model: false)` instead of `noModelStoppedPair()`. ClusterPairBothMeFirstCLITests: one `member()` fixture; a test name no longer says "since when". Kept: `LocalFirstWords.minutes` and `idleMinutes`, which forward to `MeFirstWords`: the open #1906 adds a caller. Checks (Xcode 27.2, prod identity, nice 19, CPU only, sandboxed): all of DarkbloomCLITests minus the binary-running suites and the two Metal tests, 1,200 tests in 172 suites at the PR head and here; the touched CLI suites (158 tests); ProviderCore's touched suites, 44 tests (42 at the PR head, +2); the plain-swiftc onboarding checks (1,941) and control checks (682); the console checks, 79,395 of 79,396 (the one left runs /bin/ps, which the sandbox denies; CI runs it). A 36,620-line transcript of every word the PR's code says over many states is byte-identical at the PR head and here, once the durations in 144 lines, which `clusterStatusLines` measures from the wall clock, are masked. 16 env-gated mutants. docs-check, changelog-check and diff --check are clean; docs-impact fails its "native inference" mapping as it does at the PR head (the onboarding sources sit under ProviderCore/Inference). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…impler start) into fix/pair-words-and-pause No conflicts. #1899 and #1900 keep the three choices' names (Only me, Darkbloom network, Both, me first; the app's "Local only" and "Alongside the network"), which this branch's words already use. They change `StatusCommand+LocalFirst.swift`, `cli-reference.md`, `local-first.md`, `two-mac-cluster.md` and `troubleshooting.md` beside this branch's lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th no model gets Terminal's step, not a refused Start (red) #1905's review (`review-1905.md`), nits 3 and 4, in #1908's pair words: - Nit 3: the app said "This Mac serves in a pair" whatever the pair's state (the Autopilot refusal, and onboarding's lead). - Nit 4: a pair with no model yet was offered Start serving, which the runtime then refused ("run `darkbloom start` in a terminal", which on the Mac that follows opens a screen that can't choose one). DarkbloomCLITests (compile against today's sources): - snapshotSaysThePairsState: the snapshot's `pair` gains `state` (serving, started, not_running, stopped, unreadable, from this Mac's own view) and `leads`; the Mac that follows reads "started", never "serving". - autopilotRefusalSaysThePairsState: the refusal says the pair as it is ("serves in a pair" only when it serves; "is in a pair, which is stopped"; "… that isn't running here"), then what works: Start serving, the no-model line, or checking an unreadable pairing record. - The no-model line names what works on either Mac: "choose one with `darkbloom cluster` in a terminal on <the leading Mac>" (startWithoutAModel, appStartAsPosted, startWithoutModelsOnlyStartsAPair). - snapshotOffersStartServing and autopilotIsRefusedFirst pin the stopped pair's words. Desktop app: - onboardingStartPlan: `pairLead` says the pair as it is and what Start serving does there, in words true for every state on an older runtime; `pairStartable` is false with no model yet or an unreadable record, whose lead says the Terminal step first. - onboarding: a stopped pair's page, a serving pair's ("keeps it serving"), and a pair needing Terminal first: no Start, and why. - actionRefusal: the sample refusal uses the new no-model line. On 8a85af0 (fa7da5f with dev 08337a5 merged): DesktopAppOnAPairedMacTests fails 6 of 9 (13 issues) and startWithoutAModel 1 (2 issues), on "serves in a pair" in every state, a snapshot `pair` with no state, and the old no-model line; the app fails 5 tests (the old lead; `pairLead` is not a function). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l's step where Start serving can't work, and docs-impact holds #1905's review (`review-1905.md`), nits 3 and 4, and #1908's docs-impact: - The snapshot's `pair` is `{ model, state, leads }` (`pairSnapshot`). The state comes from this Mac's own view, with nothing asked over the cable (`ClusterPairSummary.appState`): `serving` only where that view knows it, `started` where it can't tell (the Mac that follows), `not_running`, `stopped`, or `unreadable`. `leads` says which Mac chooses the model. - The Autopilot refusal says the pair as it is (`appPairSentence`: "This Mac serves in a pair" only when it serves; "is in a pair, which is stopped"; "… that isn't running here"), then what works there (`pairAutopilotRefusal`): Start serving, the no-model line, or checking an unreadable record. - The no-model line names what works on either Mac (`noModelLine`, now per Mac): "choose one with `darkbloom cluster` in a terminal on <the leading Mac>". Before, it said `darkbloom start` in a terminal, which on the Mac that follows opens a screen that can't choose one. A script's start and the app's refused Start both say it. - Desktop app: onboarding's lead says the pair as it is and what Start serving does there (`startPlan.pairLead`), in words true in every state for a runtime that reports no state. With no model yet or an unreadable record (`pairStartable`), it says the Terminal step, disables Start serving with why under it (`pairBlocked`), and leaves out the summary. A serving pair's summary says Start serving keeps it serving. - docs-impact: the three onboarding files under `ProviderCore/Inference/**` map to `docs/architecture/inference.md`, which this branch hadn't touched (the PR body's "coverage OK" came from a run against the wrong base). Its cluster setup section now says what changed there: Apple's check of a new part is the wait's progress until it's slow or held back, and the leading Mac's status carries the owner's pause. `scripts/docs-impact-check.py --base origin/dev` passes. - Docs: desktop-control (`Snapshot.pair`, the refusal), developer desktop-app (the paired page, a pair that needs Terminal first), two-mac-cluster, cli-reference, troubleshooting, agent-setup. The changelog: #1905's fragment now quotes today's words, and this branch's has the no-model line. Green (CPU-only, Xcode 27.2): the red commit's tests; all of DarkbloomCLITests, 1,275 tests in 183 suites (Metal-loading suites skipped); ProviderCoreTests MeFirstWordsTests, ClusterPairStatusWordsTests and ClusterOnboardingPeerLabelTests. Desktop app: all 680 tests in 102 files, `tsc --noEmit` and prettier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
dev moved again after c76445a: #1908 (the pair's words and pause, MeFirstWords) and #1902 (route choice; a saved route and key count on the running local API). 58 files; the only shared ones are docs (local-first.md, owner-pause.md, direct-mode.md, inference.md), which merge cleanly with this PR's text intact. No shared source file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
#1908 (the pair's words and pause) conflicted in seven files. Each side's facts are kept: - ClusterPairSummary+LocalAPI.swift: #1908's localAPILines(now:) (no time zone: times are said from now), its pause said once (statusSaysPause: the leading Mac's status carries it, OnboardingLive.pauseLines) and MeFirstWords.pairLines in place of this branch's pauseLines; this branch's relay branches (memberAPIDown, memberAPIStarting, the relay's address) and the leader's Members line from where its API listens. A member whose pair's API is kept on the leading Mac says where to look, without "whether Darkbloom is paused" when the status said it, as #1908 does. - ClusterPairBothMeFirstCLITests.swift: #1908's member() (no bind saved, so its API is kept on the leading Mac) and tests, with this branch's relaying loop; #1908's theLeaderSaysThePauseOnce has the leader on 0.0.0.0, whose other Mac now passes its own port to it, so its Members line says so. Every localAPILines call drops timeZone:. - owner-pause.md: this branch's "Every other member" row (its port relays) and #1908's "What each Mac says" row. - cli-reference.md: #1908's pause bullet (both Macs, from the leading Mac's status), this branch's rank 0 and relay lines, #1908's "where to look" words for an API kept on the leading Mac, and the --json note. - local-first.md, two-mac-cluster.md: this branch's relay text with #1908's pause on the other Mac; both of #1908's <!-- pending LS-3 --> markers (the other Mac relays its own port in Both, me first too) are rendered and deleted. - troubleshooting.md: this branch's app Start row and #1908's Autopilot row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…ac; a relaying member says the pause too CI run 42532646000 on f2d117b failed #1908's aMemberSaysItIsPartOfThePairAndWhereTheAPIIs and aMemberSaysThePause: this branch's leader() saves the API's bind (0.0.0.0 by default), so #1908's member(), made from it, relays the pair's API and names its own address, not where to look. member() now keeps that API on the leading Mac (loopback), the case those tests were written for, and aMemberSaysThePause also checks a relaying member: the pause once, under the pair's line, and this Mac's own address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…for-model Clean: no file conflicts. #1902 makes `settingsFile:` a required argument of `LocalRouterConfig.host(...)`; this branch adds no call to it, and dev's own calls carry it. Checked by a build and the CLI suites below. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…ix/tools-default-model-and-names Clean: no file conflicts. #1902 makes `settingsFile:` a required argument of `LocalRouterConfig.host(...)`; this branch adds no call to it. `ClusterPairSummary.readerForTesting`, which this branch's tests bind, is unchanged by #1903 and #1908. Checked by a build and the CLI suites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 9, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Journey 2a on pair-2 (DevNet
.144,validation-evidence/journey-2a.md, steps 3 and 5) passed #1892. It also foundfive frictions in the pair's words, all fixed here:
starton a pair that already serves now says so (…: the pair already serves., exit 0). Itasks nothing of either Mac.
Qwen 3.8 27B (last used), or choose another model."
checking both Macs with Apple(loading). The "isn't verified by Apple yet …Don't restart either Mac" warning comes only when the check is slow or held back.
comes back. It reads the leading Mac's status, which it already asks for: nothing new crosses the cable.
a clock time. This covers one Mac's
Serving:line too.From #1905's review (
review-1905.md), in the same words:Mac's own files say the pair serves, and otherwise "is in a pair, which is stopped", "… that isn't running here", or
"started with …".
The page says to choose the model with “darkbloom cluster” in Terminal on the Mac that leads the pair, and the CLI's
line says the same.
What was wrong
ClusterPairCommands.startandStart.run()'s.openScreenboth said
actingLine("starting the pair"):s3a, and a terminal on a serving pair,s3c);s3d);Child.appAttest: whether thecoordinator's latest trust status for its part carries an App Attest serving authorization. A part that just started
has none yet; it lands about a minute after the part registers (
pairReasonSettleSeconds' own comment).pairLook()turned
appAttest == falseintonotVerified(...)at once.localStatus()put that in the status line, socluster statusshowed ✗ and a script's start printed it, for each Mac in turn, on every normal start (s3b, 45 s). Thesetup screen already waited 90 s before treating it as a reason; only the status didn't.
localAPILinesread it from that Mac's own daemonstate. The other Mac showed the leading Mac's status lines, which never carried it: "✓ Serving … through Darkbloom"
for the whole pause (
s5, while DevNet answered429 machine_busy).Status.meFirstLinessaidsince HH:MMandback at about HH:MMin the Mac's own zone, with no zone named:"since 21:41", read over SSH at 05:41 UTC.
Fix
ClusterPairCommands.servingLook.cluster statusreads, only while this Mac's own view says the pair runs here andthe other Mac answers.
ensureService, noserve.scriptStartNeverAsksForTheBoundedWait). A start whoseother Mac is away doesn't look first, so it goes on at once, as before.
ClusterPairSummary.screenLine. On the leading Mac of a stopped pair: "…, which is stopped. Press Enter tostart it with Qwen 3.8 27B (last used), or choose another model.", or "Choose its model to start it." when no model
was chosen yet. Elsewhere (a started pair, or the Mac that follows): "…: opening the pair's screen."
ClusterOnboardingAppleCheck(ProviderCore, pure, compiled by the onboarding checks).appAttest,appAttestRetryAtand its part'sstartedAt, it gives progress words, "checking bothMacs with Apple" (or names the one Mac), in the status line's reason place.
cluster statusreads them asloadingon both Macs (state(ofStatus:)). The screen's live row and the Mac thatjoined (
offeredWaitingWords) say them too.slowSeconds: the usualminute, twice over), or its key-generation safeguard holds it back (
retryAt), or the part's age is unknown (anolder build), as before.
OnboardingLive.pauseLines.from its part's own state file when that part runs rank 0.
statuson the other Mac asks for this status over the cable anyway, so that Mac shows it under its ✓ line.darkbloom clusteron either Mac shows it under its ✓ block.localAPILinessays it once: the rank-0 Mac adds its own line only when the status didn't carry one (an olderleader, or rank 0 on the Mac that follows). The other Mac's pointer drops "whether Darkbloom is paused" when the
status carried it.
MeFirstWords(ProviderCore). One set of words for one Mac (Serving:) and the pair (Pair:): "paused forunder a minute / 10 minutes / 1 hour 5 minutes", "your last request 1 minute ago", "back in under a minute / about 2
minutes if you stay idle", "back any moment now".
Status.meFirstLinesand the pair's lines use them;Status.clock,Status.agoand the status lines'timeZone:are gone.#1905's review, nits 3 and 4 (
e789ca18f0)pairis{ model, state, leads }(pairSnapshot). The state comes from this Mac's own files,with nothing asked over the cable (
ClusterPairSummary.appState):servingonly where they say it (the part that runs rank 0 does);startedwhere the pair runs here and this Mac can't tell (the Mac that follows);not_running,stopped, orunreadable(the pairing record can't be read).leadssays which Mac chooses the pair's model.appPairSentence), then what works there (pairAutopilotRefusal):"Use Start serving.", the no-model line, or checking an unreadable record. For example: "This Mac is in a pair, which
is stopped; Autopilot isn't available for pairs yet. Use Start serving."
noModelLine, now worded for each Mac): "No model was chosen for the pair yet: choose one withdarkbloom clusterin a terminal on ." It used to saydarkbloom startin a terminal, which on theMac that follows opens a screen that can't choose one. A script's start and the app's refused Start both say it.
startPlan.pairLead): "keeps it serving","starts it with …", or "makes sure it serves". A runtime that reports no state gets words true in every state.
pairStartable), it says the Terminal step instead, disables Startserving with why under it (
pairBlocked), and leaves out the summary.docs-impact: the three onboarding files underProviderCore/Inference/**map todocs/architecture/inference.md, which this branch hadn't touched. Its cluster setup section now describes them:Apple's check of a new part is the wait's progress until it is slow or held back, and the leading Mac's status
carries the owner's pause.
Before And After
A paired start's first line (J2-b, J2-d)
flowchart LR subgraph before["Before"] b1["start: any pair, script or terminal"] --> b2["'… : starting the pair.'"] end subgraph after["After"] a1["script, the pair serves (one look)"] --> a2["'… : the pair already serves.' + result block, exit 0"] a3["script, otherwise"] --> a4["'… : starting the pair.'"] a5["terminal, leading Mac, pair stopped"] --> a6["'… which is stopped. Press Enter to start it with Qwen 3.8 27B (last used), or choose another model.'"] a7["terminal, otherwise"] --> a8["'… : opening the pair's screen.'"] endA part without App Attest yet (J2-c)
flowchart TD part["A Mac's part: no App Attest authorization in the coordinator's trust status yet"] part -- before --> warn0["✗ '<Mac> isn't verified by Apple yet; ... Don't restart either Mac until then.' (every start)"] part -- after --> q{"held back, 2 min without it, or age unknown?"} q -- yes --> warn["✗ the same warning"] q -- no --> prog["'... is not serving yet: checking both Macs with Apple.' (loading)"]The app's start page on a paired Mac (#1905's review, nits 3 and 4)
flowchart LR subgraph before["Before"] b1["any pair state"] --> b2["'This Mac serves in a pair. Start serving starts the pair with model.'"] b3["no model yet"] --> b4["Start serving, then refused: 'run darkbloom start in a terminal'"] end subgraph after["After (snapshot pair.state)"] a1["serving"] --> a2["'This Mac serves in a pair with model. Start serving keeps it serving.'"] a3["stopped / not running / started"] --> a4["'This Mac is in a pair, which is stopped ...' and the like"] a5["no model yet, or record unreadable"] --> a6["No Start: choose the model with darkbloom cluster in Terminal on the leading Mac"] endThe pause on the Mac that follows (J2-h, J2-i)
Test plan
6b4faf34c3, on8e7d44a9ab):PairStartFirstLineTestsfails 2 of 2 (5 issues);LocalFirstStatusTestsfails 2 of 9 (7 issues);ClusterPairBothMeFirstCLITestsfails 3 of 13 (6 issues).["ensureService", "serve"];.notServingwith "✗ Not serving: checking …";Pair:line.MeFirstWordsTestsandClusterPairStatusWordsTestsfail to type-check on the three missingnames.
5e93524ba4, and again at1e60ec8c04with desktop, cluster: the app on a paired Mac offers Start serving, never Autopilot, and its lines say what happened #1905's073ee42be7merged in), CPU-only, Xcode 27.2,nice -n 19:skipped);
MeFirstWordsTests,ClusterPairStatusWordsTests,ClusterOnboardingPeerLabelTests,ClusterPublicServingCheckTestsandMeFirstPolicyTests;ClusterOnboardingChecks(1,941 passed),ClusterConsoleChecks,ClusterControlChecks(682 passed).7da2bbe257, on8a85af06c8):DesktopAppOnAPairedMacTestsfails 6 of 9 (13issues) and
startWithoutAModel1 (2 issues): "serves in a pair" in every state, a snapshotpairwith no state, andthe old no-model line. The desktop app fails 5 tests (the old lead;
pairLeadis not a function).e789ca18f0: all of DarkbloomCLITests, 1,275 tests in 183 suites, withdev08337a5664merged in(Metal-loading suites skipped); ProviderCoreTests
MeFirstWordsTests,ClusterPairStatusWordsTests,ClusterOnboardingPeerLabelTests; the desktop app's 680 tests in 102 files,tsc --noEmitandprettier --check.make docs-check,make changelog-check,git diff --check;scripts/docs-impact-check.py --base origin/devpasses at
e789ca18f0. It failed before (the "native inference" rule, unmet since5e93524ba4). This body's earlier"coverage OK" was wrong: that run took a two-dot diff against a newer
dev(8d545e85a8), sodev's own change toinference.mdcounted.2337879e22(attempt 2), as at5e93524ba4(attempt 4). The failed attempts wereoutside this change: GitHub release downloads answering 504 (
nlohmann/json), and once a runner that lost itsconnection. The two Vercel checks fail as before.
noSpeedAndNoClockTime,paused,noSpeedAndNoKeyInAnyLine).darkbloomCLI runs on this Mac. To check on pair-2:darkbloom-dev start </dev/nullon the serving pair: "the pair already serves";darkbloom-dev stop, thendarkbloom-dev start </dev/null: "checking both Macs with Apple", never the warning;statusshowsPair: you first — Darkbloom paused for ….Components touched
startandstatus; the desktop API'ssnapshot and refusal)
Protocol / interface changes
cluster status --jsonlines) gain thePair:line(s) while the pair serves Both, me first.
checking … with Apple, readsstate: "loading"(exit 3, asnot_servingwas).pairgainsstateandleads(additive; an app that doesn't read them is unchanged, andthe app reads their absence as an older runtime).
Pair:line under ✓, and reads the check asnot_servingwith that reason.Documentation impact
two-mac-cluster.md: the Apple check,start's first line, both Macs' pause lines, the commands table;local-first.md: the relative status line, and the pair's pause on either Mac;cluster-always-on.md: the reboot check's first minute, and a troubleshooting row;cli-reference.md: pairedstart, the status table,cluster status' Apple check, Both, me first on both Macs;agent-setup.md,troubleshooting.md,architecture/owner-pause.md(what each Mac says, and its cost);architecture/inference.md(the cluster setup section: Apple's check as progress, the pause in the leading Mac'sstatus),
reference/desktop-control.md(Snapshot.pair, the refusal),developer/desktop-app.md(the pairedpage, and a pair that needs Terminal first).
Changelog
changelog.d/pair-words-and-pause.md, and desktop, cluster: the app on a paired Mac offers Start serving, never Autopilot, and its lines say what happened #1905'schangelog.d/app-on-a-paired-mac.md, which quoted the wordsthis PR changes;
make changelog-checkpasses.Notes for reviewers
otherMacReachable. Without the gate, a member whose leader had justgone to sleep would wait up to 30 s, silent, before its first line, for up to 15 minutes while its part still counts
as running. With it, that start goes on at once, as before.
servingPair()now has its other Mac answering, as aserving pair does.
startin a terminal opens its screen, which starts nothing, even for a stopped pair.Its line now says "opening the pair's screen" instead of "starting the pair". Making it start the pair is a
behaviour change for another PR.
at about 00:34). It shows only when a Mac's key-generationsafeguard holds it back, which is rare.
Pair:line when its status doesn't carry one is unchanged in place (beforeLocal API:).073ee42be7's newappStartAsPostedexpectsDesktopAppOnAPairedMacTests.starting, whichthis branch had dropped when that suite's serving case moved to "the pair already serves". The merge
1e60ec8c04puts it back (that test starts a stopped pair).
6327655fb5touches the desktop app only.dev.08337a5664(LS-1 PR-b: Only me serves in the background, and the service always serves the saved choice #1899 Only me in the background, LS-1 PR-c: a simpler start — Autopilot only for the network, a picker that opens on what fits, no key on screen #1900 a simpler start) merged without conflicts.Their names for the three choices (Only me, Darkbloom network, Both, me first; the app's "Local only" and "Alongside
the network") are the ones this PR's words use.
devhas since moved toc76445a61e(ci: hourly full CI (dev) run of dev (workflow_dispatch selects every suite) #1917, CI only), not mergedhere; CI tests the merge.
tooLargereads single-Mac pins on a paired Mac; harmless today), nits 1 and 2(the local-API line once cluster: every Mac of a pair answers locally in Both, me first (member relay, one key per Mac) — LS-3 #1894 lands, and Only me with a loopback bind), and nit 6 (two raw notices).
slowSecondsis 120 s from the part's start. The setup screen still waits its own 90 s settle fromits wait's start, so its ✗ can come up to about 30 s later than before.
Refactor Pass